/**
 * @file System.c
 * @brief
 * @author F00
 * @date 2025-06-28
 */

#include "MCU.h"
#include "stm32h7xx_hal.h"

void Task_2MS(void)
{
}

void Task_10MS(void)
{
    if (Get_SysTick_10ms() == true)
    {
    }
}

void Task_200MS(void)
{
    if (Get_SysTick_200ms() == true)
    {
    }
}

void Task_1S(void)
{
    if (Get_SysTick_1s() == true)
    {
        PrintSysTick(); // 打印系统时间
        HAL_GPIO_TogglePin(GPIOC, GPIO_PIN_13);
    }
}

void Task_IDLE(void)
{
    WDT_Feed();
}

int main(void)
{
    MCU_Init();
    Printf("MCU Init Success!\r\n");
    PrintSysTick();
    
    while (1)
    {
        Task_IDLE();
        Task_2MS();
        Task_10MS();
        Task_200MS();
        Task_1S();
    }
}
